const type = {
  INIT: {
    value: 0,
    label: "未处理"
  },
  ERROR: {
    value: 1,
    label: "异常"
  },
  COMPLETE: {
    value: 3,
    label: "提现成功"
  },
  getByValue(value) {
    for (let key in type) {
      if (type[key].value === value) {
        return type[key];
      }
    }
  }
};

Object.defineProperty(type, "getByValue", {
  enumerable: false
});

export default type;
